<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>关闭广告</title>
    <div class="box">
        <p style="float: left;color: red;">淘宝二维码</p>
        <img src="taobao.PNG" alt="">
        <i class="close-btn" style="float: left;color: red;">×</i>
    </div>

</head>

<body>
    <script>
        var btn = document.querySelector('.close-btn');
        var box = document.querySelector('.box');
        btn.onclick = function() {
            box.style.display = 'none';
        }
    </script>

</body>

</html>